const baseUrl = 'http://hotel.shengxuankj.com/api/' //主接口地址
// const baseUrl = '/api/' //主接口地址

const index = baseUrl + 'login/' //登录注册
const user = baseUrl + 'user/' //我的
const order = baseUrl + 'order/' //订单
const Shops = baseUrl + 'shop/' //商品
const upload = baseUrl + 'upload/' //系统相关

export const indexInfo = {
	getOpenid: index + 'getOpenid', //登录
	oaLogin: index + 'oaLogin', //登录
	decryptData: index + 'decryptData', //绑定手机号
	login: index + 'login', //登录
	getBanner: baseUrl + '/banner/list', //获取Banner
	getBasicList: index + 'getBasicList', //获取分类
	img: upload + 'img', //上传图片
	getRegionList: index + 'getRegionList', //获取地区
	getConfig: index + 'getConfig', //获取配置信息
	getMoneySet: index + 'getMoneySet', //充值模块配置
	getCardList: index + 'getCardList', //VIP卡列表
	getTime: index + 'getTime', //获取预约时间列表
	getCouponList: index + 'getCouponList', //优惠券列表
	pay: baseUrl + 'pay/pay', //支付
}

//商家相关	
export const userInfo = {
	getDetail: user + 'getDetail', //用户信息
	edit: user + 'edit', //修改用户信息
	writeOff: user + 'writeOff', //核销
	getCouponList: user + 'getCouponList', //用户优惠券列表
	getVipList: user + 'getVipList', //我的VIP卡
	getBillList: user + 'getBillList', //积分/余额明细
	getAddressList: user + 'getAddressList', //获取地址列表
	getAddressDetail: user + 'getAddressDetail', //获取地址详情
	addressEdit: user + 'addressEdit', //地址新增/修改
	setAddress: user + 'setAddress', //设为默认地址
	addressDel: user + 'addressDel', //地址删除
	getShopingList: user + 'getShopingList', //购物车列表
	shopingDel: user + 'shopingDel', //清空/删除购物车	
	shopingEdit: user + 'shopingEdit', //编辑购物车
	receiveCoupon: user + 'receiveCoupon', //领取优惠券
}

//订单	
export const orderInfo = {
	getMoney: order + 'getMoney', //计算订单抵扣
	createOrder: order + 'createOrder', //创建订单
	createOrders: order + 'createOrders', //创建订单--单独购买
	getList: order + 'getList', //订单列表
	getDtail: order + 'getDtail', //订单详情
	edit: order + 'edit', //订单状态修改/删除
	getConsumerDetail: order + 'getConsumerDetail', //消费者详情
}

//商品	
export const ShopsInfo = {
	getCateGoodList: Shops + 'lists', //店铺列表
	getCateList: Shops + 'getCateList', //分类列表
	getGoodsList: Shops + 'getGoodsList', //商品列表
	getPackageList: Shops + 'getPackageList', //套餐列表
	getPackageDetail: Shops + 'getPackageDetail', //套餐详情
}

export default{
	indexInfo
}
// module.exports = {
	
// }